/**
 * 
 */
package edu.towson.cosc603.coffeemaker;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * @author Xuraj
 *
 */
public class RecipeTest {

	Recipe recipe;
	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		recipe = new Recipe();
		recipe.setName("Suraj's Coffee");
		recipe.setPrice(4);
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#getAmtChocolate()}.
	 */
	@Test
	public void testGetAmtChocolate() {
		assertEquals(0, recipe.getAmtChocolate());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#setAmtChocolate(int)}.
	 */
	@Test
	public void testSetAmtChocolate() {
		recipe.setAmtChocolate(-1);
		assertEquals(0, recipe.getAmtChocolate());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#getAmtCoffee()}.
	 */
	@Test
	public void testGetAmtCoffee() {
		assertEquals(0, recipe.getAmtCoffee());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#setAmtCoffee(int)}.
	 */
	@Test
	public void testSetAmtCoffee() {
		recipe.setAmtCoffee(-1);
		assertEquals(0, recipe.getAmtCoffee());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#getAmtMilk()}.
	 */
	@Test
	public void testGetAmtMilk() {
		assertEquals(0, recipe.getAmtMilk());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#setAmtMilk(int)}.
	 */
	@Test
	public void testSetAmtMilk() {
		recipe.setAmtMilk(-1);
		assertEquals(0, recipe.getAmtMilk());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#getAmtSugar()}.
	 */
	@Test
	public void testGetAmtSugar() {
		assertEquals(0, recipe.getAmtSugar());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#setAmtSugar(int)}.
	 */
	@Test
	public void testSetAmtSugar() {
		recipe.setAmtSugar(-1);
		assertEquals(0, recipe.getAmtSugar());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#getName()}.
	 */
	@Test
	public void testGetName() {
		assertEquals("Suraj's Coffee", recipe.getName());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#setName(java.lang.String)}.
	 */
	@Test
	public void testSetName() {
		recipe.setName("New Coffee");
		assertEquals("New Coffee", recipe.getName());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#getPrice()}.
	 */
	@Test
	public void testGetPrice() {
		assertEquals(4, recipe.getPrice());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#setPrice(int)}.
	 */
	@Test
	public void testSetPrice() {
		recipe.setPrice(20);
		assertEquals(20, recipe.getPrice());
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#equals(edu.towson.cosc603.coffeemaker.Recipe)}.
	 */
	@Test
	public void testEqualsRecipe() {
		Recipe recipe2 = new Recipe();
		recipe2.setName("De Cafe");
		assertEquals(false, recipe.equals(recipe2));
	}

	/**
	 * Test method for {@link edu.towson.cosc603.coffeemaker.Recipe#toString()}.
	 */
	@Test
	public void testToString() {
		assertEquals("Suraj's Coffee", recipe.toString());
	}

}
